//
//  Student.m
//  08_类的扩展
//
//  Created by dllo on 16/7/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Student.h"

@implementation Student
- (void)seeWeChat {
    
    // 代理人可能没有实现协议方法
    // 判断代理人存不存在,判断代理人能否响应对应的协议方法.当两者同时满足,则执行
    if (self.delegate && [self.delegate respondsToSelector:@selector(buyMacBook:)]) {
        NSString *macBook = [self.delegate buyMacBook:@"14000"];
        NSLog(@"macBook: %@", macBook);
    }
}
@end
